<?php
	$product_id = $params[1];
	if($_SERVER["REQUEST_METHOD"]=='POST') {
		$title			= strip_tags($_POST['title']);
		$color_code		= strip_tags($_POST['color_code']);
		$sql = "INSERT INTO `tbl_color` (`color_id`, `title` , `color_code` ,`product_id`) VALUES (NULL, '$title', '$color_code', '$product_id');";
		mysql_query($sql);
		redirect('../');
		exit;
	}
?>